﻿#if UNITY_EDITOR
using System.Collections.Generic;
using System.IO;

public class EditerFilesManager
{
    public static List<string> GetFiles(string path)
    {
        List<string> fileNames = new List<string>();
        //获取指定路径下面的所有资源文件
        if (Directory.Exists(path))
        {
            DirectoryInfo direction = new DirectoryInfo(path);
            FileInfo[] files = direction.GetFiles("*.asset", SearchOption.TopDirectoryOnly);


            for (int i = 0; i < files.Length; i++)
            {

                if (files[i].Name.EndsWith(".meta"))
                {
                    continue;
                }
                fileNames.Add(files[i].Name);
            }
        }
        return fileNames;
    }
}
#endif